import fetch from "@/utils/fetch";
const BASE_URL = "/bl-common";
export const getCatgoryList = ()=>{
    return fetch({
        url:"/bl-cate/queryAll",
        method:"post",
    })
}


export const getWebSiteInfo = ()=>{
    return fetch({
        method:"get",
        url:"/webInfo"
    })
}


export const queryEnumType =(data)=>{
    return fetch({
        url:BASE_URL+"/common",
        method:"post",
        data,
    })
}

// 获取nav类型
export const queryNavType = ()=>{
    return fetch({
        url:BASE_URL + "/queryNavType",
        method:"post",
    })
}

// 获取导航列表
export const queryNavList = (data)=>{
    return fetch({
        url:BASE_URL + "/queryNavList",
        method:"post",
        data,
    })
}

export const queryFriendLinks = ()=>{
    return fetch({
        url:BASE_URL + "/queryFriendLink",
        method:"post",
    })
}


// 调用各平台热搜接口

export const queryHot = (type)=>{
    return fetch({
        url:BASE_URL+"/hot?type="+type,
        method:"get",
    })
}